package com.test;

import java.io.IOException;
import java.io.InputStream;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;

public class Delete {
	public static void main(String args[]) throws IOException {
		InputStream is= Resources.getResourceAsStream("mybatis-config.xml");
		SqlSessionFactory factory= new SqlSessionFactoryBuilder().build(is);
		SqlSession sqlSession= factory.openSession();
		sqlSession.delete("com.po.LoginMapper.delete_xiaoHai",7);
		sqlSession.commit();
		System.out.println("delete OK!!");
	}
}
